package ooday01;

/**
 * 汽车类
 */
public class Car {
    String brand;
    String color;
    double price;
    Car(String brand,String color,double price){
        this.brand =brand;
        this.color =color;
        this.price =price;

    }
    Car(){

    }
    void information(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块钱的车");
    }
    void start(){
        information();
        System.out.println("启动了");
    }
    void run(){
        information();
        System.out.println("开始跑了");
    }
    void stop(){
        information();
        System.out.println("停下了");
    }
    void all(){
        start();
        run();
        stop();
    }

}
